-- GENERATED SPELL FOR [A-Me 01] --


function spell0_9623(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_9623', 30324, 1)
end

function Sorts_9623(pUnit, Event)
local choix_sorts_9623 = math.random(0, 0)
if choix_sorts_9623 == 0 then
pUnit:RegisterEvent('spell0_9623', 1, 1)
end
end

function mob9623_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9623', math.random(1500, 3000), 1)
end

function mob9623_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9623_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9623_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9623, 1, 'mob9623_Action')
RegisterUnitEvent(9623, 2, 'mob9623_Leave')
RegisterUnitEvent(9623, 3, 'mob9623_Kill')
RegisterUnitEvent(9623, 4, 'mob9623_Die')
